package proc

import "fmt"

type Status int

const (
	Ready Status = 1 << iota
	Starting
	Running
	Stopping
	Stopped
)

func (code Status) String() string {
	switch code {
	case Ready:
		return "ready"
	case Starting:
		return "starting"
	case Running:
		return "running"
	case Stopping:
		return "stopping"
	case Stopped:
		return "stopped"
	default:
		return fmt.Sprintf("<unknown:%d>", code)
	}
}
